

<div class="modal-header">
    <h4 class="modal-title">投诉详情</h4>
</div>
<div class="modal-body">
    
    <div class="container-fluid form-horizontal ">
        <div class="col-xs-12">
            <h5>投诉内容</h5>
        </div>

        <div class="col-xs-12 " style="border-bottom:  #eaeff0;">
            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">场所名称:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{obj.source_name}}</p>
                    </div>
                </div>
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">投诉时间:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{obj.create_time}}</p>
                    </div>
                </div>
            </div>

            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">投诉事由:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{obj.cause_complaint}}</p>
                    </div>
                </div>
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label" >投诉图片:</label>
                    <div class="col-xs-2"  ng-repeat="item in obj.image_complaint track by $index">
                        <img class="form-control-static" src="{{item}}" style="height:100px;width: 80px"></img>
                    </div>
                </div>
            </div>

            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">投诉人姓名:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{obj.name}}</p>
                    </div>
                </div>
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">投诉人电话:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{obj.phone}}</p>
                    </div>
                </div>
            </div>

        </div>

         <div class="col-xs-12">
            <h5>客服回复信息</h5>
        </div>
        <div class="col-xs-12 " style="border-bottom: 4px solid #eaeff0;"  ng-if="obj.state==1 ||  obj.prosecutionlist !=undefined">
            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">回复内容:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{obj.reply}}</p>
                    </div>
                </div>
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">回复时间:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{obj.reply_time}}</p>
                    </div>
                </div>

            </div>

        </div>

        <div class="col-xs-12 " style="border-bottom: 1px solid #eaeff0;" ng-if="obj.state==0 && obj.prosecutionlist ==undefined">
            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">回复内容:</label>
                    <div class="col-xs-6">
                         <div class="col-xs-8">
                             <textarea class="" cols="60" rows="6" ng-model="infos.reply"></textarea>
                        </div>
                    </div>
                </div>
            </div>

        </div>


      <div class="col-xs-12"   ng-repeat="item in obj.prosecutionlist"  ng-if="obj.prosecutionlist !=undefined">
       <h5>追诉信息</h5>
        <div class="col-xs-12 " style="border-bottom:  #eaeff0;"  >
            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">追诉内容:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{item.prosecution_info}}</p>
                    </div>
                </div>
            <div class="col-xs-6">
                    <label class="col-xs-6 control-label">追诉时间:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{item.prosecution_time}}</p>
                    </div>
                </div>
            </div>

        </div>
        <div class="col-xs-12 " style="border-bottom: 2px solid #eaeff0;" ng-if="item.prosecution_reply">
            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">客服回复内容:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{item.prosecution_reply}}</p>
                    </div>
                </div>
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">客服回复时间:</label>
                    <div class="col-xs-6">
                        <p class="form-control-static">{{item.prosecution_reply_time}}</p>
                    </div>
                </div>
            </div>

        </div>
    <div class="col-xs-12 " style="border-bottom: 1px solid #eaeff0;" ng-if="item.prosecution_reply== undefined">
            <div class=" col-xs-12">
                <div class="col-xs-6">
                    <label class="col-xs-6 control-label">回复内容:</label>
                    <div class="col-xs-6">
                         <div class="col-xs-8">
                             <textarea class="" cols="60" rows="6" ng-model="info.prosecution_reply"></textarea>
                        </div>
                    </div>
                </div>
            </div>
    </div>
      </div></div>
        </div>

        

    </div>

        </div>
<div class="modal-footer">
    <button class="btn btn-danger" type="button" ng-click="ok(info.prosecution_reply)" ng-if="obj.state=='0' && obj.prosecutionlist !=undefined" >提交回复</button>
    <button class="btn btn-danger" type="button" ng-click="ok1(infos.reply)" ng-if="obj.state=='0' && obj.prosecutionlist ==undefined" >提交回复</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
</div>
</div>


